// resize.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <vector>
#include <algorithm>
#include "surpass_dlist.h"
#include "TDPtrList.h"

int cmp(int i1, int i2)
{
	return i1 < i2;
}

int _tmain(int argc, _TCHAR* argv[])
{
	int a[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
	int b[10] = {10, 11, 12, 13, 14, 15, 16, 17, 18,19};
	bool berror = false;

	/////////////////////////////////////////////////////
	TSurpassList<int> slst(b, sizeof(b)/sizeof(int));
	TDPtrList<int>dlst(b, sizeof(b)/sizeof(int));
	
	for (int i = 0; i < sizeof(b)/sizeof(int); ++i)
	{
		int *s = slst[i], *d = dlst[i];
		if (*s != *d)
		{
			berror = true;
		}
	}
	if (berror)
	{
		std::cout << "error [TSurpassList(K * addr, size_t nCount)]" << std::endl;
		berror = false;
	}
	else
	{
		std::cout << "sucess [TSurpassList(K * addr, size_t nCount)]" << std::endl;
	}
	/////////////////////////////////////////////////////


	getchar();
	return 0;
}

